#ifndef STOCK_H
#define STOCK_H


#define PI 3.1415926
//主窗口长宽
#define SCENE_WIDTH 800
#define SCENE_HEIGHT 900

#define GAME_RATE 10
#define GAME_NAME "Brick Crasher"

//help窗口相关
#define HELPER_WIDTH 400
#define HELPER_HEIGHT 300
#define HELPER_NAME "HELPER"


#define PLAYER_LIFE 3
//板板类相关数据
#define BOARD_SPEED 1.6
#define BOARD_LENGTH 150
#define BOARD_WIDTH 30
#define ORIGINAL_BOARD_X 0
#define ORIGINAL_BOARD_Y 800
#define BOARD_MOVE_RATE 10//板一次移动的距离

//砖砖类相关数据
#define BRICK_INTERVAL 10
#define BRICK_LENGTH 100
#define BRICK_WIDTH  30
#define BRICK_NUMBER_1 28
#define BRICK_NUMBER_2 38
#define BRICK_NUMBER_3 41

//球球类相关数据
#define BALL_SPEED 1.5
#define BALL_RADIUS 15
#define ORIGINAL_BALL_X 60
#define ORIGINAL_BALL_Y 770
#define BALL_MOVE_RATE 10//球一帧移动几个像素
#define ORIGINAL_DIRECT 90
//失败窗口，正方形
#define DEFEAT_SCENE_WIDTH 400

//新增
#define BOOM_INDEX 8
#define BOOM_PATH ":/sucai/broken%1.PNG"
#define BOOM_INTERVAL 10






#include<QDebug>
#include <QPen>
#include<QPaintEvent>
#include<QPainter>
#include <QWidget>
#include<QMessageBox>
#include<QCloseEvent>
#include<QIcon>
#include<QSound>
#include<QMediaPlayer>
#include<QMediaPlaylist>
#include<QTimer>
#include<QtMath>
#include<QRect>
#include<QVector>
#include<QPixmap>
#include<QIcon>








#endif // STOCK_H


